<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>文章添加页面</title>
    <link rel="stylesheet" href="../../../static/css/layui.css" th:href="@{/css/layui.css}"/>
    <link rel="stylesheet" href="../../../static/article/articleadd.css" th:href="@{/article/articleadd.css}"/>
</head>
<body>
<form class="layui-form">

    <div class="layui-form-item">
        <label class="layui-form-label">文章标题：</label>
        <div class="layui-input-block">
            <input type="text" name="articlename"  class="layui-input ContactAlias" lay-verify="required" placeholder="请输入文章标题">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">关键字：</label>
        <div class="layui-input-block">
            <input type="text" name="articlekeyword"  class="layui-input ContactAlias" lay-verify="required" placeholder="请输入关键字">
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">描述：</label>
        <div class="layui-input-block">
            <textarea id="articledescription" class="layui-textarea" name="articledescription"></textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">管理员分类</label>
            <div class="layui-input-block">
                <select  name="artulecategory" class="userGrade" lay-filter="userGrade">
                    <option th:each="all :${categoryall}" th:value="${all.fid}" th:text="${all.category}"></option>
                </select>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline imgss">
            <label class="layui-form-label">缩略图：</label>
            <img style="width: 100px; height: 100px;" src="../../../static/imgs/wenzhang.jpg" th:src="@{/imgs/wenzhang.jpg}"/>
            <input name="artuclethumbnail" value="/imgs/wenzhang.jpg" type="text" style="display: none">
        </div>
        <button type="button" class="layui-btn" id="scimg">
            <i class="layui-icon">&#xe67c;</i>上传图片
        </button>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">发布时间:</label>
            <div class="layui-input-inline">
                <input type="text" name="artuledata"  autocomplete="off" class="layui-input ContactName" placeholder="yyyy-MM-dd HH:mm:ss" id="datacontent">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">是否审核：</label>
            <div class="layui-input-inline activation">
                <input class="activation" name="artulestatus" value="2"
                       th:checked="false" id="sh" type="checkbox" lay-skin="switch" lay-filter="sh"
                       lay-text="需审核|直接通过">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">是否推向轮播：</label>
            <div class="layui-input-inline activation">
                <input class="activation" name="artulecarousel" value="0"
                       th:checked="false" id="lb" type="checkbox" lay-skin="switch" lay-filter="lb"
                       lay-text="轮播|不轮播">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">文章内容：</label>
        <div class="layui-input-block">
            <textarea  name="artuclecontent" id="editor" type="text/plain" style="width:100%;"></textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="addNew">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>

</form>

</body>
<script type="text/javascript" src="../../../static/layui.js" th:src="@{/layui.js}"></script>
<script type="text/javascript" src="../../../static/article/articleadd.js" th:src="@{/article/articleadd.js}"></script>
<script type="text/javascript" charset="utf-8" src="../../../static/ueditor/ueditor.config.js" th:src="@{/ueditor/ueditor.config.js}"></script>
<script type="text/javascript" charset="utf-8" src="../../../static/ueditor/ueditor.all.min.js" th:src="@{/ueditor/ueditor.all.min.js}"></script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="../../../static/ueditor/lang/zh-cn/zh-cn.js" th:src="@{/ueditor/lang/zh-cn/zh-cn.js}"></script>
</html>
